package com.chat.service;

import com.chat.Local;
import com.chat.common.Message;
import com.chat.common.MessageType;
import com.chat.common.User;

import java.awt.*;
/*
   该类用于拒绝好友申请
 */
public class RefuseFriend {
      public void refusefriend(String id,String addid){
            Message msg=new Message();
            User user=new User();
            msg.setMesType(MessageType.MESSAGE_REFUSE_FRIEND);//拒绝好友申请
            user.setUsername(id);
            user.setAddid(addid);
            msg.setData(user);
            ClientConnectServerThread clientConnectServerThread=ManageClientConnectServerThread.getClientConnectServerThread(Local.user.getUsername());
            clientConnectServerThread.send(msg);
      }
}
